<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./rectangle.css">
    <title>计算器</title>
</head>
<body>
    <div id="container">
        <label>宽度:</label>
        <input id="width" type="text">
        <br>
        <label>高度:</label>
        <input id="height" type="text">
        <br>
        <input type="button" value="计算" id="calculate">
        <br>
        <label>周长:</label>
        <input id="perimeter" type="text" disabled>
        <br>
        <label>面积:</label>
        <input id="area" type="text" disabled>
        <br>
    </div>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="./retangle.js"></script>
</body>
</html>